<?php

namespace app\common\Model;
use think\Db;

class BannerType extends BaseModel
{
    public static $tab_name = 'banner_type';

    // 设置返回数据集的对象名
    protected $resultSetType = 'collection';

    //状态:1有效,0禁用
    const STATUS_NORMAL = 1;
    const STATUS_FORBID = 0;
    public $_status = [
        0 => '禁用',
        1 => '有效',
    ];

    //状态:1有效,0禁用
    const IS_DEL_DELETE = 1;
    const IS_DEL_NORMAL = 0;

    //可排序字段
    public $sort_field = array(
        'name' ,
        'sort' ,
        'status' ,
        'create_time'
    );

}